package com.diver.flinkdemo.utils;

/**
 * @author guofy
 * @create 18/7/5 下午4:52
 * <p>
 * 常量类
 **/
    public class CommonResource {
    //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 普通常量值 start >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    /**
     * 短信验证码有效分钟数 10分钟
     */
    public static final Integer SMS_CODE_VALID_MINUTES = 1000 * 60 * 30;
    /**
     * 短信验证码每个手机号每天发送次数限制 5次
     */
    public static final Integer SMS_CODE_DAILY_TIMES_LIMIT = 5;


    /**
     * 安全区域半径
     */
    public static final Integer SECURITY_AREA_RADIUS_MIN = 100;//最小值(米)
    public static final Integer SECURITY_AREA_RADIUS_MAX = 500;//最大值(米)

    public static final int  SECURITY_AREA_BUFFER = 30;//围栏缓冲区（米）

    public static final double THRESHOL_VALUE_IN = 0.76;//进围栏阈值
    public static final double THRESHOL_VALUE_OUT = 0.8;//出围栏阈值


    /**
     * 百度api key
     */
    public static final String BAIDU_API_KEY = "ngWZYDyVg4kGuC9VRXR9N2t3ecHpcHgi";

    /**
     * 高德api key（企业账号）
     */
    public static final String GAODE_API_KEY = "7d704c98f5de52f6d6487bd8bc1d5a9c";

    /**
     * 精创接口idCode参数
     */
    public static final String ID_CODE = "837975";

    /**
     * 卡版本
     */
    public static final String CARDVERSION_IOT = "IOT平台";//电信NB-IOT平台
    public static final String CARDVERSION_MOFANG = "魔方平台";//电信魔方平台
    public static final String CARDVERSION_UNICOM = "华为云平台";//联通对接平台
    public static final String CARDVERSION_AEP = "AEP平台";
    public static final String CARDVERSION_XYZJ = "XYZJ";//晓羊智教应用
    public static final String CARDVERSION_XXT = "XXT";//校芯通应用
    public static final String CARDVERSION_YZH = "YZH";//翼智慧云教平台-内江翔海
    public static final String CARDVERSION_SHBX = "SHBX";//翼智慧云教平台-上海百学
    public static final String CARDVERSION_SCHJY = "SCHJY";//四川和教育
    public static final String CARDVERSION_ZGYZH = "ZGYZH";//紫光翼智慧
    public static final String CARDVERSION_YJY = "YJY";//壹教云
    public static final String CARDVERSION_TLJY = "TLJY";//天立教育
    public static final String CARDVERSION_LNLT = "LNLT";//辽宁教育平台
    public static final String CARDVERSION_FJDXYZS = "FJDXYZS";//福建电信云助手

    /**
     * 应用渠道，用于授权回调等
     */
    public static final String CHANNEL_TRAJECTORY = "trajectory";//轨迹定位

    public static final String CHANNEL_TRAJECTORY_AGEDNESS = "trajectoryAgedness";//孝芯通老年证轨迹定位
    public static final String CHANNEL_TRAJECTORY_CLOUD = "trajectoryCloud";//校芯通福建电信云轨迹定位
    public static final String CHANNEL_HE_EDUCATE = "heEducate";//和教育
    public static final String CHANNEL_TRAJECTORY_TL = "trajectoryTL";//天立

    public static final String CHANNEL_TRAJECTORY_SEVEN_CORE = "trajectorySevenCore";//七芯卡轨迹定位

    public static final String WALRUS_CODE = "code";//海象授权返回code

    public static final String TL_CODE = "code";//天立授权返回code

    public static final String CHANNEL_ATTENDANCE = "attendance";//考勤

    public static final String CHANNEL_TRAJECTORY_OLD = "trajectoryOld";//老年版

    public static final String CHANNEL_REPLACEMENT_CARD = "replacementCard";//补换卡

    public static final String CHANNEL_HEALTH_MONTITOR = "healthMonitor";//健康检查

    public static final String CHANNEL_ERRAND_DOG = "errandDog";//校芯通公众
    public static final String CHANNEL_GBG = "gbg";//跟班狗
    public static final String CHANNEL_TEACHER = "teacher";//校芯通教师端
    public static final String CHANNEL_QI_WX = "qy_wx";//校芯通教师端

    public static final String CHANNEL_ERRAND_DOG_SHARE = "errandDogShare";//校芯通公众分享渠道

    /**
     * excel 后缀
     */
    public static final String[] EXCEL_SUFFIX = {".xls", ".xlsx"};

    /**
     * 系统常用路线标识前缀
     */
    public static final String SYS_SAFETYTRAJECTORY_COMMENDID_PRE = "system";

    /**
     * 卡初始化状态
     */
    public static final String STU_INITIAL_STATE_NO_REG = "0";//未注册设备
    public static final String STU_INITIAL_STATE_NO_BIND = "1";//设备已注册但未和nb-iot平台绑定
    public static final String STU_INITIAL_STATE_NORMAL = "2";//正常，设备已注册并和nb-iot平台绑定成功

    /**
     * 学生卡类型
     */
    public static final String STU_TYPE_IN = "in";//住校
    public static final String STU_TYPE_OUT = "out";//住校

    /**
     * 邦定设备数量
     */
    public static final int BIND_NUM = 5;

    public static final String  MODE_TYPE_INTELLIGENT = "m";//默认模式-智能模式

    //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 普通常量值 end <<<<<<<<<<<<<<<<<<<<<<<<<<<<<


    //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> redis的key前缀 start >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    /**
     * token前缀
     */
    public static final String TOKEN_REDIS_PREFIX = "USER_REDIS_KEY";
    public static final String TOKEN_REDIS_TRAJECTORYOLD_PREFIX = "USER_REDIS_KEY_TRAJECTORYOLD";//老年版
    public static final String TOKEN_REDIS_STUDENT_PREFIX = "USER_REDIS_STU_KEY";//学生卡
    public static final String TOKEN_REDIS_BRACELET_PREFIX = "USER_REDIS_BRACELET_KEY";//手环
    public static final String TOKEN_REDIS_ERRANDDOG_PREFIX = "USER_REDIS_ERRANDDOG_KEY";//校芯通公众
    public static final String TOKEN_REDIS_GBG = "USER_REDIS_GBG_KEY";//跟班狗
    public static final String TOKEN_REDIS_TEACHER = "USER_REDIS_teacher_KEY";//教师
    public static final String TOKEN_REDIS_QY_WX = "USER_REDIS_qy_wx_KEY";//企业微信
    /**
     * SOS短信
     */
    public static final String SMSTIME_SOS_KEY = "sms_time_sos_";//发送时间缓存key
    public static final String SMSTIME_SOS_KEY_NOXY = "sms_time_sos_noxy_";//发送时间缓存key(没有位置)
    public static final String WX_SMSTIME_SOS_KEY = "wx_sms_time_sos_";//微信模版发送时间缓存key
    public static final String WX_SMSTIME_SOS_KEY_NOXY = "wx_sms_time_sos_noxy_";//微信模版发送时间缓存key(没有位置)
    public static final long EFFECTIVE_TIME_SOSSMSTIME = 5 * 60;//缓存有效期s（5分钟）
    /**
     * 上一条位置数据key
     */
    public static final String PRE_LOCATION_KEY = "pre_location_key_";

    /**
     * 7芯卡、手机卡在线状态 key
     */
    public static final String PHONE_CARD_REDIS_PREFIX = "phone_card_redis_prefix_";

    /**
     * 系统常用路线-上学
     */
    public static final String SYSTEM_SAFETRAJECTORY_TO_SCHOOL = "system_safetrajectory_0_";
    /**
     * 系统常用路线-放学
     */
    public static final String SYSTEM_SAFETRAJECTORY_LEAVE_SCHOOL = "system_safetrajectory_1_";

    /**
     * 长时间停留数据
     */
    public static final String LONGSTAY_XYT = "longstay_xyt_";

    /**
     * 设备数据
     */
    public static final String STUDENT_CARD_LIST = "student_card_list";
    /**
     * 安全区域
     */
    public static final String SECURITY_AREA_LIST = "security_area_list";
    /**
     * 小羊围栏
     */
    public static final String XY_POLYGON_FENCE_LIST = "xy_polygon_fence_list";
    /**
     * 设备设置信息
     */
    public static final String CARD_SETTING_LIST = "card_setting_list";

    /**
     * 学校策略信息
     */
    public static final String SCHOOL_MODE_LIST = "school_mode_list";
    /**
     * 上一条下发指令
     */
    public static final String PRE_COMMAND_MODE = "pre_command_mode";

    /**
     * 上一条定位优先级
     */
    public static final String PRE_COMMAND_PRIORITY = "pre_command_priority";

    public static final String PRE_COMMAND_CR = "pre_command_cr";

    //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< redis的key前缀 end <<<<<<<<<<<<<<<<<<<<<<<<<<<<<


    //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> header key start >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    /**
     * request header
     */
    public static final String REDIS_KEY_USERTOKEN = "usertoken";
    /**
     * userredis
     */
    public static final String HEADER_KEY_USERID = "userId";

    public static final String HEADER_KEY_OPENID = "openId";

    public static final String HEADER_KEY_STUDENTCARDID = "studentCardId";

    public static final String HEADER_KEY_STUDENTCARDTYPE = "studentCardType";

    public static final String HEADER_KEY_STUDENTTYPE = "studentType";

    public static final String HEADER_KEY_CARDVERSION = "cardVersion";


    public static final String HEADER_KEY_ADMIN_ID = "adminId";
    public static final String HEADER_KEY_ADMIN_ROLEID = "roleId";
    //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< header key end <<<<<<<<<<<<<<<<<<<<<<<<<<<<<

    //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> session key start >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    public static final String SESSION_KEY_OPENID = "openId";
    public static final String SESSION_KEY_USERID =  "userId";
    //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< session key end <<<<<<<<<<<<<<<<<<<<<<<<<<<<<

    //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 短信签名 start >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    public static final String SIGNATURE_XXT = "【校芯通】";
    public static final String SIGNATURE_GBG = "【跟班狗】";
    //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 短信签名 end <<<<<<<<<<<<<<<<<<<<<<<<<<<<<

    //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 上学守护 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    public static final String GUARD_SETTING_MESSAGE = "guard_setting_message";
}
